package com.xiaoxiao.springbootstudy.service;

import com.xiaoxiao.springbootstudy.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoxiao.springbootstudy.pojo.vo.CountResult;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
* @author XiaoXiao
* @description 针对表【t_user】的数据库操作Service
* @createDate 2025-05-19 14:34:27
*/
public interface UserService extends IService<User> {
    public void saveUserRolerService(User user);
    public Map<String, Object> getUserRolerService(Integer pageNum, Integer pageSize);

    @Transactional
    void updateUserRoleService(User user);

    @Transactional
    void deleteUserRoleService(Integer id);


    public List<CountResult> countEmployeeAageService();

    public List<CountResult> countEmployeeEduService();
}
